home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Technology Seed / August 1998 ADC Seed CD.toast / Language Analysis Manager / DarumaDR1Package / Examples / LanguageAnalysisTestApp / Sources / ConsoleWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.0 KB  |  55 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ConsoleWindow.h
  3.  
  4.      Contains:    Sample code for Language Analysis Manager.
  5.  
  6.      Version:    Technology:    System 8
  7.                  Release:    Daruma Developer Release 1
  8.  
  9.      Copyright:    1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Contact:    daruma@apple.com
  12.  
  13. */
  14.  
  15.  
  16. #ifndef __CONSOLEWINDOW__
  17. #define __CONSOLEWINDOW__
  18.  
  19. #include <Windows.h>
  20. #include <Events.h>
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. // ========================================================================================
  27. // Types
  28. // ========================================================================================
  29.  
  30. typedef struct OpaqueConsoleWindowRec *ConsoleWindowRef;
  31.  
  32.  
  33. // ========================================================================================
  34. // Function Prototypes
  35. // ========================================================================================
  36.  
  37. extern OSStatus            GetNewConsoleWindow( SInt16 resID, WindowRef behind, StringPtr fontName, SInt16 fontSize, ConsoleWindowRef *console );
  38. extern OSStatus            NewConsoleWindow( const Rect *windRect, StringPtr title, Boolean visible, SInt16 wDefProcID, WindowRef behind, Boolean goAwayFlag, long refcon, StringPtr fontName, SInt16 fontSize, ConsoleWindowRef *console );
  39. extern void                DisposeConsoleWindow( ConsoleWindowRef console );
  40. extern Boolean            ProcessConsoleWindowEvent( EventRecord *theEvent, Boolean *closed );
  41. extern void                SetConcoleWindowFont( ConsoleWindowRef console, StringPtr fontName, Boolean redraw );
  42. extern void                SetConcoleWindowFontSize( ConsoleWindowRef console, SInt16 fontSize, Boolean redraw );
  43. extern void                PutPStringConsoleWindow ( ConsoleWindowRef console, StringPtr theString );
  44. extern void                PutCStringConsoleWindow ( ConsoleWindowRef console, const char *theString );
  45. extern void                ClearConsoleWindowContent( ConsoleWindowRef console );
  46. extern ConsoleWindowRef    GetConsoleWindowFromWindow( WindowRef window );
  47. extern WindowRef        GetWindowFromConsoleWindow( ConsoleWindowRef console);
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif /* __CONSOLEWINDOW__ */
  54.  
  55.